package com.dmx.cep.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.dmx.cep.entity.ConfBlock;
import com.dmx.fw.dao.interfaces.Dao;

public interface ConfBlockDao extends Dao{
	
    public void batchDeleteConfBlockByIds(Integer[] ids);

    public void deleteConfBlockById(Integer id);

    public void saveOrUpdateConfBlock(ConfBlock confBlock);

    public ConfBlock findConfBlockById(Integer id);
	
    void saveOrUpdateBlackWhite(Integer keyOrDomain,Integer blackOrWhite,Integer isValid,String value) throws DataAccessException;
    
    List<Object[]> queryBlackWhiteList(String keyOrDomain,String blackOrWhite,String isValid,String value,String orderByScript) throws Exception;
}
